package br.com.sovi.gwt.client.historico;

import br.com.sovi.gwt.client.entity.HistoricoPoint;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.maps.client.geocode.Placemark;
import com.google.gwt.maps.client.geom.LatLng;
import com.google.gwt.maps.client.overlay.Marker;
import com.google.gwt.maps.client.overlay.MarkerOptions;

public class HistoricoMarker extends Marker {

	private HistoricoPoint historicoPoint;

	private JsArray<Placemark> jsArray;

	public HistoricoMarker(HistoricoPoint historicoPoint) {
		super(LatLng.newInstance(historicoPoint.getPoint().getLatitude(), historicoPoint.getPoint()
				.getLongitude()));

		this.historicoPoint = historicoPoint;
	}

	public HistoricoMarker(HistoricoPoint historicoPoint, JsArray<Placemark> jsArray) {
		super(LatLng.newInstance(historicoPoint.getPoint().getLatitude(), historicoPoint.getPoint()
				.getLongitude()));
		this.historicoPoint = historicoPoint;
		this.jsArray = jsArray;
	}

	public HistoricoMarker(HistoricoPoint historicoPoint,
			JsArray<Placemark> jsArray, MarkerOptions options) {
		super(LatLng.newInstance(historicoPoint.getPoint().getLatitude(), historicoPoint.getPoint()
				.getLongitude()), options);
		this.historicoPoint = historicoPoint;
		this.jsArray = jsArray;
	}

	public HistoricoMarker(LatLng point) {
		super(point);
	}

	public HistoricoMarker(JavaScriptObject jsoPeer) {
		super(jsoPeer);
	}

	public HistoricoMarker(LatLng point, MarkerOptions options) {
		super(point, options);
	}

	public HistoricoPoint getHistoricoPoint() {
		return historicoPoint;
	}

	public void setHistoricoPoint(HistoricoPoint historicoPoint) {
		this.historicoPoint = historicoPoint;
	}

	public JsArray<Placemark> getJsArray() {
		return jsArray;
	}

	public void setJsArray(JsArray<Placemark> jsArray) {
		this.jsArray = jsArray;
	}

}
